package com.avic.gateway.common.util.ex;


/**
 * 业务异常代码;
 * <p>
 * 400 系统级别异常
 * 100 业务异常
 *
 * @author: huangsheng
 * @date: 2017/10/19 上午11:05
 */
public enum BizErrorCode {

    MANAGEMENT_TOKEN_ERROR("900403", "你没有访问该资源的权限"),

    MANAGEMENT_TOKEN_INVALID("900901", "登入信息失效，请重新登入"),

    SYSTEM_ERROR("900500", "系统一场，请稍后重试"),

    SERVICE_API_TIME_OUT("900902", "接口超时，请稍后重试");


    /**
     * 业务异常码
     */
    private String code;

    /**
     * 业务异常描述
     */
    private String description;


    BizErrorCode(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
